import request from '@/utils/request'
export function getBanner(query) {
  return request({
    url: '/member/banner/page',
    method: 'get',
    params: query
  })
}
// -api/member/banner/create 创建banner
export function createBanner(data) {
  return request({
    url: '/member/banner/create',
    method: 'post',
    data: data
  })
}
// 删除banner
export function deleteBanner(id) {
  return request({
    url: '/member/banner/delete?id=' + id,
    method: 'delete'
  })
}
// 更新banner
export function updateBanner(data) {
  return request({
    url: '/member/banner/update',
    method: 'put',
    data: data
  })
}
// 获得学生风采分页
export function getStudent(query) {
  return request({
    url: '/member/student-show/page',
    method: 'get',
    params: query
  })
}
// 创建学生风采
export function createStudent(data) {
  return request({
    url: '/member/student-show/create',
    method: 'post',
    data: data
  })
}
// 更新学生风采
export function updateStudent(data) {
  return request({
    url: '/member/student-show/update',
    method: 'put',
    data: data
  })
}
// 删除学生风采
export function deleteStudent(id) {
  return request({
    url: '/member/student-show/delete?id=' + id,
    method: 'delete'
  })
}
//

// 获取学生风采回收站
export function recoveryStudentShowPage(query) {
  return request({
    url: '/member/student-show/recoveryStudentShowPage',
    method: 'get',
    params: query
  })
}
// 批量还原学生风采
export function updateBatchRecoveryStudentShow(data) {
  return request({
    url: '/member/student-show/updateBatchRecoveryStudentShow',
    method: 'put',
    data: data
  })
}
// 热门招聘企业top10
export function getTopCompany10(query) {
  return request({
    url: '/recruitCompany/getHotCompanyJobList',
    method: 'post',
    data: query
  })
}
// 热门招聘职位top10
export function getTopJob10(query) {
  return request({
    url: '/recruitCompany/getPassJobList',
    method: 'post',
    data: query
  })
}
// 获得招聘统计数据
export function getJobAndinvitCount(query) {
  return request({
    url: '/recruitCompany/getJobAndinvitCount',
    method: 'post',
    data: query
  })
}
// 招聘、学员分布
export function getDistribution(query) {
  return request({
    url: '/recruitCompany/getDistribution',
    method: 'post',
    params: query
  })
}
//  获取用户访问量
export function getUserPV(query) {
  return request({
    url: '/system/login-log/count',
    method: 'get',
    params: query
  })
}
